package com.fwj.authorization.staff.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fwj.authorization.staff.entity.SysPermission;
import com.fwj.authorization.staff.entity.SysRole;
import com.fwj.authorization.staff.entity.SysUser;

import java.util.List;

/**
 * 用户
 *
 * @author 樊温军
 * @date 2025/3/18 上午10:32
 */
public interface SysUserService extends IService<SysUser> {

    IPage<SysUser> getPage(Page<SysUser> page, SysUser sysUser);

    List<SysPermission> getPermissionListByUsername(String username);

    List<SysRole> getRoleListByUsername(String username);

    SysUser getUserByUsername(String username);

    void updateLastLoginTime(String username);
}
